<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//后台主页
Route::controller('admin','AdminController');


//后台的管理用户控制器
Route::group(['middleware'=>'admin'],function(){
  
  Route::controller('user','UserController');

});

//前台的注册登录控制器
Route::controller('login','LoginController');

Route::group(['middleware'=>'login'],function(){


	//前台的主页控制器
	Route::controller('index','IndexController');

	//前台的引导控制器
	Route::controller('load','LoadController');

	//前台的发现控制器
	Route::controller('explore','ExploreController');

	//前台的个人中心控制器
	Route::controller('people','PeopleController');

	//前台的回答控制器
	Route::controller('answer','AnswerController');

	//前台的写文章控制器
	Route::controller('article','ArticleController');

	//前台的私信控制器
	Route::controller('inbox','InboxController');

	//前台的设置控制器
	Route::controller('setting','SettingController');
});

// Route::controller('mail','MailController');
